package com.zy.entity.bs;

import com.zy.entity.base.BaseEntity;
import com.zy.pojo.annotation.Comment;

import java.math.BigDecimal;

import javax.persistence.Table;
import javax.persistence.Transient;



@Table(name = "bs_cart")
public class Cart extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@Comment("商品ID")
	private Long goodsId;
	@Comment("会员ID")
	private Long customerId;
	@Comment("数量")
	private Integer count;
	@Transient
	@Comment("商品名称")
	private String goodsName;
	@Transient
	@Comment("商品价格")
	private BigDecimal price;
	@Transient
	@Comment("商品图片")
	private String url;

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public BigDecimal getPrice() {
		return price;
	}

	public void setPrice(BigDecimal price) {
		this.price = price;
	}

	public Long getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(Long goodsId) {
		this.goodsId = goodsId;
	}

	public Long getCustomerId() {
		return customerId;
	}

	public void setCustomerId(Long customerId) {
		this.customerId = customerId;
	}

	public Integer getCount() {
		return count;
	}

	public void setCount(Integer count) {
		this.count = count;
	}

}